package com.user.feign;

import com.common.domain.pojo.Result;
import com.common.feign.OpenFeignRequestPrefix;
import com.user.domain.vo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "eselect-course-service")
public interface CourseFeignClient {

    // 获取指定用户发布的课程
    @GetMapping(OpenFeignRequestPrefix.COURSE_SERVICE + "/listByUsername")
    Result<List<CourseVo>> getCourseListPublishByUsername(@RequestParam("username") String username);
}
